// API configuration
const API_CONFIG = {
    // Base URL for API requests - change this to localhost
    BASE_URL: 'http://localhost:8003',
    
    // Endpoints
    ENDPOINTS: {
        USER: '/user',
        USER_MY: '/user/my',
        // Add other endpoints as needed
    },
    
    // Full URLs (computed)
    getFullUrl: function(endpoint) {
        return this.BASE_URL + endpoint;
    },
    
    // User related URLs
    USER_API: {
        MY_PROFILE: function() { 
            return API_CONFIG.getFullUrl(API_CONFIG.ENDPOINTS.USER_MY);
        },
        // Add other user API methods as needed
    }
};

// Export for use in other files
if (typeof module !== 'undefined' && module.exports) {
    module.exports = API_CONFIG;
} 